/*
 * @Description: 
 * @Author: hanyu
 * @Date: 2022-03-06 11:17:28
 * @LastEditTime: 2022-03-24 14:02:08
 * @LastEditors: hanyu
 */
import {
    postAxios,
    getAxios
} from '@/lib/http';


export const allApi = {
    // 敏感等级
    Mingan: data => {
        return getAxios('/index/mingan', data);
    },
    // 违规类别
    Leibie: data => {
        return getAxios('/index/leibie', data);
    },
    // 违规趋势
    Weigui: data => {
        return getAxios('/index/weigui', data);
    },
    // 网站信息
    IndexWebinfo: data => {
        return getAxios('/index/webinfo', data);
    },
    // 导出报告
    IndexExport: data => {
        return getAxios('/website/report', data);
    },
    // 网址库编辑
    websiteEditLib: data => {
        return postAxios('/website/editlib', data);
    },
    // 网址库删除
    websiteLibDel: data => {
        return postAxios('/website/dellib', data);
    },
    // 获取首页
    getHomeData: data => {
        return getAxios('/index/index', data);
    },
    // 抓取配置修改
    grabConfig: data => {
        return postAxios('/grab/config', data);
    },
    // 地区列表
    websiteArea: data => {
        return getAxios('/website/area', data);
    },
    // 抓取配置列表
    grabList: data => {
        return getAxios('/grab/index', data);
    },
    // 网址库列表
    websiteLib: data => {
        return getAxios('/website/lib', data);
    },
    // 今日预警
    earlyWarningList: data => {
        return getAxios('/early_warning/list', data);
    },
    // 属地网站编辑
    websiteUpdate: data => {
        return postAxios('/website/update', data);
    },
    // 属地网站删除
    websiteDel: data => {
        return postAxios('/website/del', data);
    },
    // 属地网站新增
    websiteAdd: data => {
        return postAxios('/website/add', data);
    },
    // 敏感词分类
    sensitiveCategory: data => {
        return getAxios('/sensitive/category', data);
    },
    // 敏感词列表
    sensitiveWords: data => {
        return getAxios('/sensitive/words', data);
    },
    // 预警信息
    earlyWarning: data => {
        return getAxios('/index/early_warning', data);
    },
    // 网站列表
    websiteList: data => {
        return getAxios('/website/list', data);
    },
    // 网站分类
    websiteCategory: data => {
        return getAxios('/website/category', data);
    },
};